home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / renamedlgplugin.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.9 KB  |  60 lines

  1. /* This file is part of the KDE libraries
  2.     Copyright (C)  2001 Holger Freyther <freyther@kde.org>
  3.  
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Library General Public
  6.     License as published by the Free Software Foundation; either
  7.     version 2 of the License, or (at your option) any later version.
  8.  
  9.     This library is distributed in the hope that it will be useful,
  10.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.     Library General Public License for more details.
  13.  
  14.     You should have received a copy of the GNU Library General Public License
  15.     along with this library; see the file COPYING.LIB.  If not, write to
  16.     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17.     Boston, MA 02110-1301, USA.
  18. */
  19.  
  20. #ifndef renamedlgplugin_h
  21. #define renamedlgplugin_h
  22.  
  23. #include <kio/renamedlg.h>
  24. #include <qdialog.h>
  25. #include <sys/types.h>
  26. #include <qstring.h>
  27. #include <qstringlist.h>
  28.  
  29. /** 
  30.  * This is the base class for all RenameDlg plugins. 
  31.  * @short Base class for RenameDlg plugins. 
  32.  * @since 3.1
  33.  */
  34. class KIO_EXPORT RenameDlgPlugin : public QWidget
  35. {
  36. public:
  37.   /**
  38.    * This is the c'tor.
  39.    */
  40.   RenameDlgPlugin(QDialog *dialog, const char *name, const QStringList &/*list*/ = QStringList() ): QWidget(dialog, name ) {};
  41.  
  42.   /** 
  43.    * This function will be called by RenameDlg. The params are infos about the files.
  44.    * @return If the plugin want's to display it return true, if not return false
  45.    */
  46.   virtual bool initialize(KIO::RenameDlg_Mode /*mod*/ ,  const QString &/*_src*/, const QString &/*_dest*/,
  47.           const QString &/*mimeSrc*/,
  48.           const QString &/*mimeDest*/,
  49.           KIO::filesize_t /*sizeSrc*/,
  50.           KIO::filesize_t /*sizeDest*/,
  51.           time_t /*ctimeSrc*/,
  52.           time_t /*ctimeDest*/,
  53.           time_t /*mtimeSrc*/,
  54.           time_t /*mtimeDest*/ ) {return false;};
  55.  
  56. };
  57.  
  58. #endif
  59.  
  60.